﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Interop;
using GurLoader.View;
using NUnit.Framework;

namespace GurLoaderWPF.Test.View
{
    [TestFixture]
    public class WebBrowserWrapperTests
    {
        [Test]
        [STAThread]
        public void CreateInstanceTest()
        {
            WebBrowser browser = new WebBrowser();
            var instance = new WebBrowserWrapper(browser);

            Assert.IsNotNull(instance);
        }

        [Test]
        [ExpectedException(typeof(ArgumentNullException))]
        public void CreateInstanceNullBrowserTest()
        {
            WebBrowser browser = null;
            var instance = new WebBrowserWrapper(browser);
        }
    }
}
